Bmob = require("Bmob").Bmob;
// 云端 初始化Bmob实例
Bmob.initialize("fc30bc248958b04d13ceaa3ea59586c6", "81023f48d80dcf99805d4965adab5f1d");
global.Bmob = Bmob;
var UserTest=Bmob.Object.extend("UserTest");
var user=new UserTest({name:"user"});
user.save(null,{success:function(a){console.log(a)}})
function ToCo(query_instance, method, args) {
    if (!Array.isArray(args)) {
        args = []
    }
    args.push({
        success: resolve,
        error: reject
    });
    return new Promise(function(resolve, reject) {
        query_instance[method].apply(query_instance, args);
    });
};
module.exports = Bmob;
